﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace System {
	public static class MSSystemExtenstions {
		private static Random rng = new Random();
		public static void Shuffle<T>(this T[] array) {
			rng = new Random();
			int n = array.Length;
			while(n > 1) {
				int k = rng.Next(n);
				n--;
				T temp = array[n];
				array[n] = array[k];
				array[k] = temp;
			}
		}
	}
}